<template>
	<router-view />
</template>

<script setup>
import useSettingsStore from '@/store/modules/settings';
import {handleThemeStyle} from '@/utils/theme';
import setIntroduction from '@/utils/setIconfont';
import useWangeditor from '@/utils/useWangeditor';
useWangeditor();
// 设置初始化，防止刷新时恢复默认
onBeforeMount(() => {
	// 设置批量第三方 icon 图标
	setIntroduction.cssCdn();
	// 设置批量第三方 js
	setIntroduction.jsCdn();
});
onMounted(() => {
	nextTick(() => {
		// 初始化主题样式
		handleThemeStyle(useSettingsStore().theme);
	});
});
</script>
